Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZipException workarounds #3747

Merged
merged 1 commit into from
Aug 11, 2023
Merged

ZipException workarounds #3747

merged 1 commit into from
Aug 11, 2023

Conversation

wborn
Copy link
Member

@wborn wborn commented Aug 9, 2023

I ran into some more build issues due to this "Improved ZIP64 Extra Field Validation" (see #3718) now that Temurin 17.0.8 upgrades are available in APT repos.

The org.openhab.core.karaf bundle fails to build as Java thinks there are some issues with org.apache.karaf.features.core-4.4.0.jar. However zip -T ... thinks it's OK. So perhaps this is a false positive. It doesn't complain about org.apache.karaf.features.core-4.4.3.jar so let's use that instead.

Also the itests generate lots of ZipException stacktraces due to the issue with geronimo-osgi-locator.jar.

* Use Karaf 4.4.3 compile dependency
* Disable this feature in itests

Signed-off-by: Wouter Born <[email protected]>
@wborn wborn requested a review from a team as a code owner August 9, 2023 10:57
wborn added a commit to wborn/openhab-addons that referenced this pull request Aug 9, 2023
This prevents ZipException stacktraces when running the itests on JDK 17.0.8 or newer.

Related to:

* openhab/openhab-core#3718
* openhab/openhab-core#3747

Signed-off-by: Wouter Born <[email protected]>
wborn added a commit to wborn/openhab-addons that referenced this pull request Aug 9, 2023
This prevents ZipException stacktraces when running the itests on JDK 17.0.8 or newer.

Related to:

* openhab/openhab-core#3718
* openhab/openhab-core#3747

Signed-off-by: Wouter Born <[email protected]>
@J-N-K J-N-K added the bug An unexpected problem or unintended behavior of the Core label Aug 11, 2023
Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@J-N-K J-N-K added the external bug A problem or unintended behavior of an external library label Aug 11, 2023
@J-N-K J-N-K added this to the 4.1 milestone Aug 11, 2023
@J-N-K J-N-K merged commit 17e9cf3 into openhab:main Aug 11, 2023
2 checks passed
@wborn wborn deleted the zip-exception branch August 11, 2023 13:34
wborn added a commit that referenced this pull request Aug 11, 2023
* Use Karaf 4.4.3 compile dependency
* Disable this feature in itests

Signed-off-by: Wouter Born <[email protected]>
@wborn wborn added patch A PR that has been cherry-picked to a patch release branch and removed bug An unexpected problem or unintended behavior of the Core labels Aug 11, 2023
@morph166955
Copy link

While not an issue persay, this seems to break the ability to create the hybrid 3.x 4.x jars. Noticed yesterday when compiling androidtv.

@wborn
Copy link
Member Author

wborn commented Aug 13, 2023

That is to be expected and it will get more complicated over time as differences between branches grow. It's not recommended and unsupported for various reasons.

@morph166955
Copy link

Fully agreed and not trying to say we need to do anything to resolve it. Just noting for anyone who is doing the hybrids where the break occurred for later on.

J-N-K pushed a commit to openhab/openhab-addons that referenced this pull request Aug 13, 2023
This prevents ZipException stacktraces when running the itests on JDK 17.0.8 or newer.

Related to:

* openhab/openhab-core#3718
* openhab/openhab-core#3747

Signed-off-by: Wouter Born <[email protected]>
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/no-longer-able-to-build-a-binding-for-3-4-x/149270/4

Pshatsillo pushed a commit to Pshatsillo/openhab-addons that referenced this pull request Sep 29, 2023
)

This prevents ZipException stacktraces when running the itests on JDK 17.0.8 or newer.

Related to:

* openhab/openhab-core#3718
* openhab/openhab-core#3747

Signed-off-by: Wouter Born <[email protected]>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
)

This prevents ZipException stacktraces when running the itests on JDK 17.0.8 or newer.

Related to:

* openhab/openhab-core#3718
* openhab/openhab-core#3747

Signed-off-by: Wouter Born <[email protected]>
Signed-off-by: Jørgen Austvik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external bug A problem or unintended behavior of an external library patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants